﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Data.Linq
{
    public  interface  IDataContext
    {
        string ConnectionString{get;set;}
        IEnumerable<T> Execute<T>(System.Linq.Expressions.Expression expression);
        IQueryable Execute(System.Linq.Expressions.Expression expression);
        ITable<T> GetTable<T>();
        void SubmitChanges();

    }

}
